package ccy.ccysolarcount.playerdata;

import ccy.ccylibrary.data.PlayerDataS;
import ccy.ccysolarcount.config.CcyConfig;
import org.bukkit.entity.Player;
import java.util.List;

public class PlayerData {
    private final PlayerDataS data;

    public PlayerData(Player player) {
        this.data = CcyConfig.config.data.getPlayerSql(player);
    }

    public void setTyn1(int value) {
        this.data.setValue("tyn1", value);
    }

    public int getTyn1() {
        return this.data.getInt("tyn1");
    }

    public void setTyn2(int value) {
        this.data.setValue("tyn2", value);
    }

    public int getTyn2() {
        return this.data.getInt("tyn2");
    }
}
